<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>SDL_gpu: SDL_gpu_matrix.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">SDL_gpu
   &#160;<span id="projectnumber">0.10.0</span>
   </div>
   <div id="projectbrief">A hardware-accelerated, cross-platform 2D graphics API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">SDL_gpu_matrix.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="SDL__gpu_8h_source.html">SDL_gpu.h</a>&quot;</code><br />
<code>#include &lt;math.h&gt;</code><br />
<code>#include &lt;string.h&gt;</code><br />
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ae71449b1cc6e6250b91f539153a7a0d3"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="SDL__gpu__matrix_8c_ae71449b1cc6e6250b91f539153a7a0d3.html#ae71449b1cc6e6250b91f539153a7a0d3">M_PI</a>&#160;&#160;&#160;3.1415926f</td></tr>
<tr class="separator:ae71449b1cc6e6250b91f539153a7a0d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee1f2f5fb05f4936184a23f4dda732c9"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="SDL__gpu__matrix_8c_aee1f2f5fb05f4936184a23f4dda732c9.html#aee1f2f5fb05f4936184a23f4dda732c9">static_inline</a>&#160;&#160;&#160;static inline</td></tr>
<tr class="separator:aee1f2f5fb05f4936184a23f4dda732c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8ebe632cda15d1bf7f223d45bbe44b72"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="SDL__gpu__matrix_8c_a8ebe632cda15d1bf7f223d45bbe44b72.html#a8ebe632cda15d1bf7f223d45bbe44b72">INDEX</a>(row,  col)&#160;&#160;&#160;((col)*4 + (row))</td></tr>
<tr class="separator:a8ebe632cda15d1bf7f223d45bbe44b72"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae4df4fd81cfbc1eb8c948917613155bb"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="SDL__gpu__matrix_8c_ae4df4fd81cfbc1eb8c948917613155bb.html#ae4df4fd81cfbc1eb8c948917613155bb">FILL_MATRIX_4x4</a>(A,  a0,  a1,  a2,  a3,  a4,  a5,  a6,  a7,  a8,  a9,  a10,  a11,  a12,  a13,  a14,  a15)</td></tr>
<tr class="separator:ae4df4fd81cfbc1eb8c948917613155bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga0db366f79c98aad27ed4687868c693c3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Matrix_ga0db366f79c98aad27ed4687868c693c3.html#ga0db366f79c98aad27ed4687868c693c3">GPU_MatrixCopy</a> (float *result, const float *A)</td></tr>
<tr class="separator:ga0db366f79c98aad27ed4687868c693c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1507b4cb0383a4846ecabb37905c2a57"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="SDL__gpu__matrix_8c_a1507b4cb0383a4846ecabb37905c2a57.html#a1507b4cb0383a4846ecabb37905c2a57">GPU_MatrixIdentity</a> (float *result)</td></tr>
<tr class="separator:a1507b4cb0383a4846ecabb37905c2a57"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c41e8a0850b79e89532b5805272ed7d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="SDL__gpu__matrix_8c_a0c41e8a0850b79e89532b5805272ed7d.html#a0c41e8a0850b79e89532b5805272ed7d">GPU_Multiply4x4</a> (float *result, float *A, float *B)</td></tr>
<tr class="separator:a0c41e8a0850b79e89532b5805272ed7d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a16f67254e54a499f0444ac41b439720d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="SDL__gpu__matrix_8c_a16f67254e54a499f0444ac41b439720d.html#a16f67254e54a499f0444ac41b439720d">GPU_MultiplyAndAssign</a> (float *result, float *A)</td></tr>
<tr class="separator:a16f67254e54a499f0444ac41b439720d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b5d38993a2cd89dc0af5c2d74a30cdc"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="SDL__gpu__matrix_8c_a7b5d38993a2cd89dc0af5c2d74a30cdc.html#a7b5d38993a2cd89dc0af5c2d74a30cdc">GPU_GetMatrixString</a> (float *A)</td></tr>
<tr class="separator:a7b5d38993a2cd89dc0af5c2d74a30cdc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf16fa38fde7aaf9b0c60bf5d410c888"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="SDL__gpu__matrix_8c_aaf16fa38fde7aaf9b0c60bf5d410c888.html#aaf16fa38fde7aaf9b0c60bf5d410c888">GPU_MatrixMode</a> (int matrix_mode)</td></tr>
<tr class="separator:aaf16fa38fde7aaf9b0c60bf5d410c888"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca437ef33d3ba07b77db651ce980ec38"><td class="memItemLeft" align="right" valign="top">float *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="SDL__gpu__matrix_8c_aca437ef33d3ba07b77db651ce980ec38.html#aca437ef33d3ba07b77db651ce980ec38">GPU_GetModelView</a> (void)</td></tr>
<tr class="separator:aca437ef33d3ba07b77db651ce980ec38"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae50a43c01d9f26faeafced6a5d4d1c14"><td class="memItemLeft" align="right" valign="top">float *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="SDL__gpu__matrix_8c_ae50a43c01d9f26faeafced6a5d4d1c14.html#ae50a43c01d9f26faeafced6a5d4d1c14">GPU_GetProjection</a> (void)</td></tr>
<tr class="separator:ae50a43c01d9f26faeafced6a5d4d1c14"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9019b3b704bd96905d79375a9a9360f7"><td class="memItemLeft" align="right" valign="top">float *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="SDL__gpu__matrix_8c_a9019b3b704bd96905d79375a9a9360f7.html#a9019b3b704bd96905d79375a9a9360f7">GPU_GetCurrentMatrix</a> (void)</td></tr>
<tr class="separator:a9019b3b704bd96905d79375a9a9360f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6bc1fcc0c484304dded9cc300f50faf1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="SDL__gpu__matrix_8c_a6bc1fcc0c484304dded9cc300f50faf1.html#a6bc1fcc0c484304dded9cc300f50faf1">GPU_PushMatrix</a> (void)</td></tr>
<tr class="separator:a6bc1fcc0c484304dded9cc300f50faf1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9129fbc83597f62521045f584db7fef5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="SDL__gpu__matrix_8c_a9129fbc83597f62521045f584db7fef5.html#a9129fbc83597f62521045f584db7fef5">GPU_PopMatrix</a> (void)</td></tr>
<tr class="separator:a9129fbc83597f62521045f584db7fef5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad54065b8fcfcd343e2bc2a927d958373"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="SDL__gpu__matrix_8c_ad54065b8fcfcd343e2bc2a927d958373.html#ad54065b8fcfcd343e2bc2a927d958373">GPU_LoadIdentity</a> (void)</td></tr>
<tr class="separator:ad54065b8fcfcd343e2bc2a927d958373"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa455ebb931d30b3020b58090a6e19ce7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="SDL__gpu__matrix_8c_aa455ebb931d30b3020b58090a6e19ce7.html#aa455ebb931d30b3020b58090a6e19ce7">GPU_Ortho</a> (float left, float right, float bottom, float top, float near, float far)</td></tr>
<tr class="separator:aa455ebb931d30b3020b58090a6e19ce7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf45ab07f4a29b193ec8292b0ebdb6d4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="SDL__gpu__matrix_8c_aaf45ab07f4a29b193ec8292b0ebdb6d4.html#aaf45ab07f4a29b193ec8292b0ebdb6d4">GPU_Frustum</a> (float right, float left, float bottom, float top, float near, float far)</td></tr>
<tr class="separator:aaf45ab07f4a29b193ec8292b0ebdb6d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a350bdc53f9ee8c566da2a90106729658"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="SDL__gpu__matrix_8c_a350bdc53f9ee8c566da2a90106729658.html#a350bdc53f9ee8c566da2a90106729658">GPU_Translate</a> (float x, float y, float z)</td></tr>
<tr class="separator:a350bdc53f9ee8c566da2a90106729658"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aec59d6499b52273c11ee43e7e41cf4ef"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="SDL__gpu__matrix_8c_aec59d6499b52273c11ee43e7e41cf4ef.html#aec59d6499b52273c11ee43e7e41cf4ef">GPU_Scale</a> (float sx, float sy, float sz)</td></tr>
<tr class="separator:aec59d6499b52273c11ee43e7e41cf4ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abcd7f396545f72ccddc83561191a330f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="SDL__gpu__matrix_8c_abcd7f396545f72ccddc83561191a330f.html#abcd7f396545f72ccddc83561191a330f">GPU_Rotate</a> (float degrees, float x, float y, float z)</td></tr>
<tr class="separator:abcd7f396545f72ccddc83561191a330f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a16f047156d126f6a1588c87b4f54c059"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="SDL__gpu__matrix_8c_a16f047156d126f6a1588c87b4f54c059.html#a16f047156d126f6a1588c87b4f54c059">GPU_MultMatrix</a> (float *A)</td></tr>
<tr class="separator:a16f047156d126f6a1588c87b4f54c059"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e5a7ce884f583f249e55d7ffcbdd844"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="SDL__gpu__matrix_8c_a6e5a7ce884f583f249e55d7ffcbdd844.html#a6e5a7ce884f583f249e55d7ffcbdd844">GPU_GetModelViewProjection</a> (float *result)</td></tr>
<tr class="separator:a6e5a7ce884f583f249e55d7ffcbdd844"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Feb 11 2015 20:10:41 for SDL_gpu by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
